<%@ page import="com.bdqn.t382.lx.pojo.SysUser" %><%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2025/3/3
  Time: 13:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--<%--%>
<%--    SysUser user = (SysUser) session.getAttribute("user");--%>
<%--    if (user == null) {--%>
<%--        response.sendRedirect("erro.jsp");--%>
<%--    }--%>
<%--%>--%>
<div align="center">
    <form action="formUpdate" method="post">
        <table>
            <tr align="center">
                <td colspan="3"><h3>查看图书信息</h3></td>
            </tr>
            <tr>
                <td><input type="hidden" name="b_id" id="b_id" value="${book.b_id}"></td>
            </tr>
            <tr>
                <td>图书名称：</td>
                <td><input type="text" name="b_name" id="b_name" value="${book.b_name}"></td>
            </tr>
            <tr>
                <td>图书作者：</td>
                <td><input type="text" name="b_author" id="b_author" value="${book.b_author}"></td>
                <td></td>
            </tr>
            <tr>
                <td>购买日期：</td>
                <td><input type="text" name="b_time" id="b_time" value="${book.b_time}"></td>
                <td>yyyy-MM-dd格式</td>
            </tr>
            <tr>
                <td>图书类别：</td>
                <td>
                    <select name="b_type">
                        <option value="0" <c:if test="${book.b_type==0}">selected</c:if>>请选择所属分类</option>
                        <option value="1" <c:if test="${book.b_type==1}">selected</c:if>>计算机/软件</option>
                        <option value="2" <c:if test="${book.b_type==2}">selected</c:if>>小说/文摘</option>
                        <option value="3" <c:if test="${book.b_type==3}">selected</c:if>>杂项</option>
                    </select>
                </td>
                <td></td>
            </tr>
            <tr align="center">
                <td colspan="3"><input type="submit" value="修改图书"></td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
